package ooday01test;

public class CarTest {
    public static void main(String[] args) {
        // 创建对象
        Car car1=new Car();
        car1.brand="宝马";
        car1.color="黑";
        car1.price=100.0;
        car1.start();
        car1.run();
        car1.stop();

        Car car2=new Car("奔驰","白",200.0);
        car2.start();
        car2.run();
        car2.stop();

    }
}
